package ch.bfh.swos.learnaid.repository;

import javax.inject.Inject;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import ch.bfh.swos.learnaid.model.Tag;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("/persistenceContext.xml")
public class TagRepositoryIT {

    @Inject
    private TagRepository tagRepository;

    @Test
    public void test() {
        // CREATE
        Tag tag = new Tag();
        tag.setLabel("SuperFrage");
        tagRepository.save(tag);
    }
}
